<?php namespace Home\Controller;

use Framework\Kernel\Controller;
use Home\Model\Stu;
use Framework\Model\Db;
class IndexController extends Controller{
	
	public function index()
	{
		$obj = new Db('stu');
		$d = $obj->execute('insert into stu set username=?',['李小明']);
		// $obj->table ='stu';
		// $d = $obj->where('id>1')->limit(1)->select();
		p($d);
		
		// $obj = new Stu;
		// $d = $obj->limit(1)->select(); 
		// p($d);
		// echo "456";
		// $obj = new Stu;
		// $d = $obj->find(2);
		// p($d);
		// echo $d['username'];
	}
}